all:httpserver test_cgi
	
httpserver:main.cc
	g++ -o $@ $^ -std=c++11 -lpthread

test_cgi:cgi/test_cgi.cc
	g++ -o $@ $^ -std=c++11


.PHONY:clean
clean:
	rm -r httpserver test_cgi
	rm -rf output
	
output:
	mkdir -p output
	cp httpserver output
	cp -rf wwwroot output
	cp test_cgi output/wwwroot
